Skip to content

Conversation

haduongquang
Copy link
Contributor

@haduongquang haduongquang commented Oct 3, 2024

This PR introduces NXP S32 HSE CRYTO driver for SoC NXP S32Z27 and enables its usage for board s32z270dc2.
Supports cryptographic operations, including hashing and symmetric ciphers, with capabilities for ECB, CBC, and CTR modes using RAM-based key catalogs with 128-bit key lengths.

tests\crypto\crypto_hash:

SUITE PASS - 100.00% [crypto_hash]: pass = 1, fail = 0, skip = 0, total = 1 duration = 0.001 seconds
 PASS - [crypto_hash.test_hash] duration = 0.001 seconds

samples\drivers\crypto:

I: Cipher Sample
I: ECB Mode
I: Output length (encryption): 0
I: ECB mode ENCRYPT - Match
I: Output length (decryption): 0
I: ECB mode DECRYPT - Match
I: CBC Mode
I: Output length (encryption): 80
I: CBC mode ENCRYPT - Match
I: Output length (decryption): 0
I: CBC mode DECRYPT - Match
I: CTR Mode
I: Output length (encryption): 0
I: CTR mode ENCRYPT - Match
I: Output length (decryption): 0
I: CTR mode DECRYPT - Match

@zephyrbot
Copy link

zephyrbot commented Oct 3, 2024

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_nxp zephyrproject-rtos/hal_nxp@bcab469 (master) zephyrproject-rtos/hal_nxp#443 zephyrproject-rtos/hal_nxp#443/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_nxp DNM This PR should not be merged (Do Not Merge) labels Oct 3, 2024
@haduongquang haduongquang changed the title Add support for NXP S32 HSE CRYPTO driver for S32Z270 Add support NXP S32 HSE CRYPTO driver for S32Z270 Oct 3, 2024
@decsny decsny removed their request for review October 3, 2024 05:26
@haduongquang haduongquang force-pushed the support-hse-driver-for-s32z270 branch 3 times, most recently from dc8d870 to 2ba0f4f Compare October 3, 2024 08:01
@haduongquang
Copy link
Contributor Author

Fixed compliance, clang and build fail.

@haduongquang
Copy link
Contributor Author

I updated the copyright and improved and beautified the code. Fixed the typo in the commit message as well.

@haduongquang haduongquang force-pushed the support-hse-driver-for-s32z270 branch 3 times, most recently from 0ce725f to 91c0eea Compare April 8, 2025 08:24
@haduongquang
Copy link
Contributor Author

Rebased and fixed the CI fail.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be protected by global mutex

@haduongquang haduongquang force-pushed the support-hse-driver-for-s32z270 branch from 91c0eea to 639cedc Compare April 15, 2025 02:30
@manuargue
Copy link
Member

@haduongquang pls fix the twister failures

@haduongquang haduongquang force-pushed the support-hse-driver-for-s32z270 branch from 639cedc to 1f24a4b Compare April 28, 2025 08:00
@manuargue
Copy link
Member

All my comments on this PR were addressed, but we have a blocker on the hal_nxp side that we are resolving internally at NXP. Once that's clarified, I will remove my block on this PR.

@github-actions github-actions bot added the Stale label Jun 28, 2025
@zephyrproject-rtos zephyrproject-rtos deleted a comment from github-actions bot Jun 28, 2025
@manuargue manuargue removed the Stale label Jun 28, 2025
@haduongquang haduongquang force-pushed the support-hse-driver-for-s32z270 branch from 1f24a4b to a1d60a3 Compare August 7, 2025 07:41
valeriosetti
valeriosetti previously approved these changes Aug 7, 2025
Copy link

sonarqubecloud bot commented Aug 7, 2025

Add device tree node for MU instances that will be used by HSE and RTU
for s32z270.

Add support hash crypto for NXP S32 with Algo 2:
SHA224, SHA256, SHA384 and SHA512.

Add support cipher crypto with ECB, CBC and CTR mode by using ram key
catalog.

Add support 128/256 bits ram key length.

Signed-off-by: Ha Duong Quang <[email protected]>
Enable test for s32z270 hash crypto.

Enable samples for cipher cryptoEndable samples for EBC, CBC,
CTR mode of cipher crypto.

Signed-off-by: Ha Duong Quang <[email protected]>
@haduongquang haduongquang force-pushed the support-hse-driver-for-s32z270 branch from fa054ef to 1f14609 Compare September 22, 2025 09:19
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Crypto / RNG area: Documentation area: mbox area: Samples Samples DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-hal_nxp platform: NXP Drivers NXP Semiconductors, drivers platform: NXP S32 NXP Semiconductors, S32 platform: NXP NXP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants